package top.infopub.mgr.bpa.service.impl;

import org.springframework.stereotype.Service;
import top.infopub.mgr.bpa.dao.BpaProjectBudgetDao;
import top.infopub.mgr.bpa.dao.BpaProjectBudgetSubDao;
import top.infopub.mgr.bpa.service.BpaProjectBudgetSubService;
import top.infopub.mgr.bpa.vo.BpaProjectBudgetSub;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by wurz on 2021/6/18.
 */
@Service
public class BpaProjectBudgetSubServiceImpl implements BpaProjectBudgetSubService {
    @Resource
    private BpaProjectBudgetSubDao bpaProjectBudgetSubDao;

    @Override
    public int insert(BpaProjectBudgetSub budget) {
        return bpaProjectBudgetSubDao.insert(budget);
    }

    @Override
    public int deleteByPrimaryKey(String sguid) {
        return bpaProjectBudgetSubDao.deleteByPrimaryKey(sguid);
    }

    @Override
    public int delete(BpaProjectBudgetSub budget) {
        return bpaProjectBudgetSubDao.delete(budget);
    }

    @Override
    public int updateByPrimaryKey(BpaProjectBudgetSub budget) {
        return bpaProjectBudgetSubDao.updateByPrimaryKey(budget);
    }

    @Override
    public BpaProjectBudgetSub selectOne(String sguid) {
        return bpaProjectBudgetSubDao.selectOne(sguid);
    }

    @Override
    public List<BpaProjectBudgetSub> selectList(BpaProjectBudgetSub budget) {
        return bpaProjectBudgetSubDao.selectList(budget);
    }

    @Override
    public int selectCount(BpaProjectBudgetSub budget) {
        return bpaProjectBudgetSubDao.selectCount(budget);
    }

    @Override
    public int insertBatch(List<BpaProjectBudgetSub> budgetList) {
        return bpaProjectBudgetSubDao.insertBatch(budgetList);
    }
}
